//
//  WmcMediaTeamAlbumModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/9/15.
//

import Foundation
import YPNetwork

class WmcMediaTeamAlbumModel: YPNetworkJsonProtocol {
    // Lifecycle

    required init() {}

    // Internal

    /// 当日拍照数量
    var currentDateResourceNum: Int = 0

    /// 当日拍照人数
    var currentDateAuthorNum: Int = 0

    /// 资源总数量 个人相册时进行统计
    var totalResourceNum: Int = 0

    /// 相册资源最大数据库id
    var maxDbId: Int = 0

    /// 相册类型 0：个人 1：团队
    var albumType: Int = 0

    /// 相册id
    var albumId: Int = 0

    /// 相册名称
    var name: String = ""

    /// 是否开启同步
    var isSync: Bool = true

    /// 创建时间
    var createdTime: String = ""

    /// 业务id 团队相册为团队id 个人相册为鱼泡id
    var busId: String = ""

    /// 团队ID
    var teamId: Int = 0

    /// 团队号id
    var teamOpenId: String = ""

    /// 团队创建者uid
    var createdUid: String = ""
    
    /// 是否展示红点
    var isShowRedDot: Bool = false

    func mapping(mapper: HelpingMapper) {
        mapper <<< self.createdTime <-- "createdAt"
    }
}
